package com.ysd.service.impl;

import com.ysd.dao.StudentMapper;
import com.ysd.dao.UserMapper;
import com.ysd.entity.User;
import com.ysd.service.UserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @ClassName UserServiceImpl
 * @Description TODO
 * @Author lvzhenzhen
 * @Date 2021/11/22 17:02
 */
@Service
public class UserServiceImpl implements UserService {

    @Resource
    UserMapper userMapper;

    @Resource
    StudentMapper studentMapper;
    @Override
    public User login(String username, String pwd) {
        User user =  userMapper.selectByUsernameAndPwd(username,pwd);
        System.out.println("查询用户"+user);
        return user;
    }
}

